			//安全组
(function($){
	$(function(){
		var resizePage = (function () {
            $("body").height($(window).height());
            var ww = $(window).width(),
                wh = $("body").innerHeight(),
                searchH = $(".search-panel").outerHeight(true),
                footerH = $(".table-footer").outerHeight(true),
                ulHeaderH = $(".ul_head").outerHeight(true),
                $ulBody = $(".ul_body"),
                $topUlBody = $(".top_ul_body");

            $ulBody.height(wh - searchH - footerH - ulHeaderH -40);
            $topUlBody.height(wh - footerH - ulHeaderH - 158);
            return arguments.callee;
        })();

        $(window).resize(resizePage);
        
        var top = window.parent;
        
        //搜索栏相关操作
        $(".search-panel")
        	//创建安全组
        	.on("click",".create-safety",function(){
        		top.$.popShow("pages/safetyGroup/edit_safety.html");
        	})
        
        //安全组列表内相关操作
        $(".safety-list-body")
        	.on("click",".safety-rule",function(){
        		$(".safety-manage").fadeIn(600);
        	})
        	//编辑安全组
        	.on("click",".safety-edit",function(){
        		top.$.popShow("pages/safetyGroup/edit_safety.html");
        	})
        	
        //管理规则相关操作
        $(".safe-manage-panel")
        	//关闭管理规则
        	.on("click",".close-pop",function(){
        		$(".safety-manage").fadeOut(600);
        	})
        	//创建安全组规则
        	.on("click",".create-safetyRule",function(){
        		top.$.popShow("pages/safetyGroup/create_safetyRule.html");
        	})
        	
		
		
	})
	
})(jQuery)

